<?php
class Orthographe_WordCounter_Block_Adminhtml_Gridcommande_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
{
	/**
	 * Init class
	 */
	public function __construct()
	{
		$this->_blockGroup = 'reviserordermanagement';
		$this->_controller = 'adminhtml_gridcommande';
			
		parent::__construct();
			
		if(!Mage::helper('orthographewordcounter')->isAdministrator() ) {
			$this->_removeButton('delete');
			$this->_removeButton('save');
		}
	}

	/**
	 * Get Header text
	 *
	 * @return string
	 */
	public function getHeaderText()
	{
		if (Mage::registry('reviserordermanagement')->getId()) {
			return $this->__('Edit Order - #'.Mage::registry('reviserordermanagement')->getId());
		}
		else {
			return $this->__('New Order');
		}
	}
}